package com.yangjiayu.service;

import com.yangjiayu.grace.utils.PagedGridResult;
import com.yangjiayu.pojo.bo.QuestionLibBO;
import com.yangjiayu.pojo.vo.InitQuestionsVO;

import java.util.List;

/**
 * @Classname QuestionLibService
 * @Description TODO
 * @Date 2025/6/19 15:43
 * @Created by YangJiaYu
 */
public interface QuestionLibService {

    void createOrUpdateInterviewer(QuestionLibBO questionLibBO);


    /**
     * 分页查询题库
     * @param aiName
     * @param question
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryList(String aiName,String question,Integer page,Integer pageSize);


    public void setDisplayOrNot(String questionLibId, Integer isOn);


    /**
     * @Description: 删除面试题
     * @param questionLibId
     */
    public void delete(String questionLibId);

    /**
     * @Description: 判断所有面试题库中是否包含某个面试官
     * @param InterviewerId
     * @return boolean
     */
    public boolean isQuestionLibContainInterviewer(String InterviewerId);

    /**
     * @Description: 获得指定数量的随机面试题
     * @param candidateId
     * @param questionNum
     * @return List<InitQuestionsVO>
     */
    public List<InitQuestionsVO> getRandomQuestions(String candidateId, Integer questionNum);
}
